<template>
  <div class="about">
    <h1>This is an about page</h1>
    <p @click="add(123), mutaion()">counter: {{ $store.state.counter }}</p>
    <p @click="$store.dispatch('add', 123)">
      asyncCounter: {{ $store.state.counter }}
    </p>
    <p>doubleCounter:{{ $store.getters.doubleCounter }}</p>
    <Info/>
  </div>
</template>
<script lang="ts">
import Info from "./Info.vue";
export default {
  components: {
    Info
  },
  methods: {
    add(a) {
      console.log(a);

      this.$store.commit("add");
    },
    mutaion() {
      console.log(111);
    },
  },
};
</script>